package com.bao.work;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;

/**
 * @author baoye
 * @date 2024-08-06/19:38
 */
public class Work05 {
    public static void main(String[] args) throws IOException {
        File readFile=new File("day10/src/com/bao/work/huayujava2/a/A.txt");
        BufferedReader reader = new BufferedReader(new FileReader(readFile));
        ArrayList<String> readers=new ArrayList<>();
        String str;
        while((str=reader.readLine())!=null){
            readers.add(str);
        }
        for (String s : readers) {
            System.out.println(s);
        }

        reader.close();
    }
}
